/*
 * BinaryFile.h
 *
 */

#ifndef BINARYFILE_H_
#define BINARYFILE_H_

#include "IFile.h"

class BinaryFile : public IFile {
private:
	std::fstream file;
	String path;

public:
	BinaryFile();
	virtual ~BinaryFile();

	std::fstream& getDescriptor();

	bool open(const String& path, bool create = false);
	void create(const String& path);
	void close();
	const String& getPath() const;
};

#endif /* BINARYFILE_H_ */
